package com.comprehensive.personalfile.feign;

import com.comprehensive.common.dto.PageResponse;
import com.comprehensive.common.po.FileInfo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(name = "data-access-service")
public interface FileInfoFeignClient {

    @PostMapping("/file")
    boolean saveFileInfo(@RequestBody FileInfo fileInfo);
    @GetMapping("/file/listPage")
    PageResponse<FileInfo> listPage(
            @RequestParam(defaultValue = "1") int pageNum,
            @RequestParam(defaultValue = "10") int pageSize);
}